package com.miao.im.common.annotation;

import com.miao.im.common.enums.Command;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/3/1 14:17
 * @Description:
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MessageCommand {
    /**
    * 指令
    * @author miaoguoxin
    * @date 2021/3/1
    */
    Command value();

    /**
    * 是否需要校验
    * @author miaoguoxin
    * @date 2021/4/1
    */
    boolean needAuth() default true;
}
